/**
 * Created by zhtt on 2016/12/20.
 */
var app=angular.module('app01', []);
app.controller('ctrl01', function($scope,$timeout) {
    $scope.clock= new Date();
    var updateClock=function () {
        $scope.clock=new Date();
        $timeout(function () {
            updateClock();
        },1000);
    }
    updateClock();
});